/*-----------Header1, topheader.jsp, ((logo, cart, login))-----------------*/

/* Styling for the HEADER */
/* ********************** */

#header1Container {
    background-color: #275D38;
    width: 100%;
    color: #FFFFFF !important;
}

#header3Container {
    display: flex;
    justify-content: center;
    background-color: #FFFFFF !important;
    color: #000000;
}

/* Style for the header element */
#header3Container #header3 .navbar-nav .nav-link:hover {
    position: relative; 
    display: inline-block; 
}

/* Add underline effect with the ::after pseudo-element */
#header3Container #header3 .navbar-nav .nav-link:hover::after {
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 5px; 
    width: 100%; 
    height: 2.3px; 
    background-color: black; 
    transform-origin: bottom right; 
    transition: transform 0.3s ease; 
}

/* Show the underline on hover */
#header3Container #header3 .navbar-nav .nav-link:hover::after {
    bottom: 5px; /* Adjust position if needed (make it closer to the text) */
}

/* Apply Roboto font to all nav-links inside #header3 */

#header3Wrapper #header3Container #header3 .navbar-nav .nav-link {
    font-family: 'Roboto Slab Regular', sans-serif;
    font-size: 1.2em; /* Adjust size if needed */
    
    color: black; /* Set text color to black */
    justify-content: flex-start; /* Align items to the start (left) */
}

#header3Wrapper {
    background-color: #FFFFFF !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Example shadow */
}

#header3Container #header3{
    width: 100%; 
    height: 100%; 
}

#mainContentWrapper{
    padding-top: 20px;
    padding-bottom: 20px;
}


/* ********************** */

/* Middle of the languagebar.jsp ((logo, cart, login))*/

#header1Wrapper {
    background-color: #275D38 !important;
    color: #FFFFFF !important;
}

#header1ContentWrapper #loginInfo{
    color: #FFFFFF;
}

/* sides of languagebar.jsp ((logo, cart, login))*/

#cartInfo .glyphicon-shopping-cart {
    color: #FFFFFF !important;
    /* cart color*/
}

#loginDropdownMenuLink {
    color: #FFFFFF !important;
    /*Login link color*/
    font-size: 15px !important;
    font-weight: 400;
}

#logoutLinkWrapper {
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 400;
}

.headerProfileLink {
    color: #000000 !important;
    font-size: 15px !important;
    font-weight: 400;
}

#loginNameWrapper {
    color: #000000 !important;
    font-size: 15px !important;
    font-weight: 400;
}

.headerStudentLoginLogoutLink {
    color: #000000 !important;
    font-size: 15px !important;
    font-weight: 400;
}

/*-------------------------Global nav, globalNavigationEmbeddable.jsp ------------------------------*/

/* align nav items to the right */

#globalNavigationBar {
    background-color: #FFFFFF !important;
}

/* change the color of the center of the navbar that is now aligned to the right*/

.nav-item {
    font-size: 17px !important;
    /* global nav item font size */
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
}

.navbar-light .navbar-nav .nav-link {
    color: #000000 !important;
    font-family: 'Open Sans', sans-serif;
}

/* Color of navbar items/links */

/* Style all buttons with type="button" */
button[type="button"] {
    background-color: #ffc107; 
    color: black; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 1em; 
    transition: background-color 0.3s ease; 
}

/* Optional: Hover effect */
button[type="button"]:hover {
    background-color: #F2CD00; 
    color: black;
}

/* Style all buttons with type="submit" */
button[type="submit"] {
    background-color: #ffc107; 
    color: black; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 1em; 
    transition: background-color 0.3s ease; 
}

/* Optional: Hover effect */
button[type="submit"]:hover {
    background-color: #F2CD00; 
    color: black;
}

/* Log in link when click the cart */
.col-12 p a {
    color: black;
    transition: color 0.3s, font-size 0.3s;
}

.col-12 p a:hover {
    color: #275D38;
    font-size: 1.1em;
}

  

/*-------------------------Courses Search Results Webpage-------------------------------*/

/* Make the buttons on the Course Webpage white in colour */
#buttonCourseProfileActionEmail .glyphicon-envelope{
    color: black;
}
#buttonCourseProfileActionRemind .glyphicon-time{
    color: black;
}
#buttonCourseProfileActionInquiry .glyphicon-question-sign{
    color: black;
}
#buttonCourseProfileActionPrint .glyphicon-print {
    color: black;
}

/* Change the font color to black for text inside the card-header with specific classes */
span.programArea a {
    color: #275D38; 
    transition: color 0.3s ease, font-size 0.3s ease; 
}

/* Hover effect for the <a> element */
span.programArea a:hover {
    color: black; 
    font-size: 1.1em; 
}

/* Area of Study Inner Tables */
#programAreaCoursesAndCertificates h2 {
    position: relative; 
    display: inline-block; 
    color: #275D38;
    padding-bottom: 5px; 
}

.card-header {
    position: relative; 
}

/* Target the "Course" column specifically */
#courseSearchResult th.sortable.sorted.order1 a {
    color: black !important; 
    text-decoration: none; 
}

/* Ensure the color stays black on hover, active, and visited states */
#courseSearchResult th.sortable.sorted.order1 a:hover,
#courseSearchResult th.sortable.sorted.order1 a:active,
#courseSearchResult th.sortable.sorted.order1 a:visited {
    color: black !important; 
}

/* Target the cells in the first column specifically */
#courseSearchResult td.firstColumn .courseName a {
    color: black !important; 
    transition: color 0.3s ease, font-size 0.3s ease; 
}

/* Change color and increase font size on hover */
#courseSearchResult td.firstColumn .courseName a:hover {
    color: #275D38 !important; 
    font-size: 1.1em; 
}

/* Default text color for links */
.list-unstyled a {
    color: #275D38; 
    text-decoration: none; 
    transition: color 0.3s, font-size 0.3s; 
}

/* Change text color to black and slightly increase font size on hover */
.list-unstyled a:hover {
    color: #000000; 
    font-size: 1.1em; 
}



/* Default background color for nav-item with tab-list class */
.nav-item.tab-list {
    background-color: #ffc107; 
}

/* Background color on hover */
.nav-item.tab-list:hover {
    background-color: #F2CD00; 
}

/* Background color when the tab is active */
.nav-item.tab-list .nav-link.active {
    background-color: #F2CD00; 
}

/* Glyphicon color */
.glyphicon.glyphicon-th-list {
    color: black; 
}

/* Text color */
.courseSearchResultGridTabText {
    color: black; 
}

/* Text color when the tab is active */
.nav-item.tab-list .nav-link.active .courseSearchResultGridTabText {
    color: black; 
}



/* Default background color for nav-item with tab-grid class */
.nav-item.tab-grid {
    background-color: #ffc107; 
}

/* Background color on hover */
.nav-item.tab-grid:hover {
    background-color: #F2CD00; 
}

/* Background color when the tab is active */
.nav-item.tab-grid .nav-link.active {
    background-color: #F2CD00; 
}

/* Glyphicon color */
.glyphicon.glyphicon-th-large {
    color: black; 
}

/* Text color */
.courseSearchResultListTabText {
    color: black; 
}

/* Text color when the tab is active */
.nav-item.tab-grid .nav-link.active .courseSearchResultListTabText {
    color: black; 
}

/*----Courses Page Grid View*/
.courseName a {
    display: inline-block;
    margin: 0.2em 0;
    color: #275D38;
    transition: color 0.3s ease, font-size 0.3s ease;
}

.courseName a:hover {
    color: black;
    font-size: 1.1em; 
}

/*-------------------------Program Search Results Webpage-------------------------------*/

table#certificateSearchResult th.sortable.sorted.order1 a,
table#certificateSearchResult th.sortable a {
    color: black !important;
}

table#certificateSearchResult a {
    color: black;
    transition: font-size 0.3s ease;
}

table#certificateSearchResult a:hover {
    color: #275D38;
    font-size: 1.1em; 
}

li.odd a {
    color: #275D38;
    transition: color 0.3s ease, font-size 0.3s ease;
}

li.odd a:hover {
    color: black;
    font-size: 1.1em; 
}

li.even a {
    color: #275D38;
    transition: color 0.3s ease, font-size 0.3s ease;
}

li.even a:hover {
    color: black;
    font-size: 1.1em; 
}

.checkmark-container {
    padding: 0;
    margin: 0;
}
.checkmark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checkmark-list li {
    position: relative;
    padding-left: 30px;
    font-size: 13pt;
    font-family: Arial, sans-serif;
    color: #000000;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.checkmark-list li:hover {
    color: #275D38; 
}
.checkmark-list li span {
    position: absolute;
    left: 0;
    color: #275D38;
    font-size: 20px;
}





/*-------------------------Programs Webpage Cards-------------------------------*/

.card-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-container:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-headerPrograms {
    background-color: #ffc107;
    padding: 15px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.5s ease;
}

.card-headerPrograms h2programs {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #275D38;
}

.card-headerPrograms .plus-sign {
    font-size: 24px;
    font-weight: bold;
    color: #275D38;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.card-headerPrograms:hover .plus-sign {
    color: #275D38;
}

.card-bodyPrograms {
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0 15px;
    background-color: #ffffff;
}

/* Hover effect for the link "View course timetable */
.timetable-text:hover {
    font-size: 15pt; 
    text-decoration: underline; 
}

/* Style for the link inside the card body */
.card-bodyPrograms a {
    color: #000000 !important; 
    text-decoration: none !important; 
    transition: color 0.3s ease, text-decoration 0.3s ease, font-size 0.3s ease; 
}

/* Hover effect for the link */
.card-bodyPrograms a:hover {
    color: #008000 !important; 
    text-decoration: underline !important; 
    font-size: 1.1em !important; 
}

.card-container.expanded .card-bodyPrograms {
    max-height: 500px; 
    padding: 15px;
    opacity: 1;
    visibility: visible;
}

.card-bodyPrograms ul {
    list-style: disc inside; /* Moves the bullet point closer to the text */
    padding-left: 0; /* Removes extra left padding */
    margin: 10px 0; /* Adjusts the spacing between lines */
    font-size: 13pt; /* Ensures consistent font size */
    line-height: 1.5; /* Controls the vertical spacing between lines */
}

.card-bodyPrograms li {
    margin-left: 0; /* Prevents additional spacing from the left */
    padding-left: 5px; /* Fine-tunes the space between the bullet and text */
}

.checkmark-list li a {
    color: #000000;
    text-decoration: none;
}
.checkmark-list li a:hover {
    text-decoration: underline;
}

.card-bodyPrograms p {
    color: #000000; 
    font-size: 13pt; 
    font-family: Arial, sans-serif;
    font-weight: 400;
}

.card-bodyPrograms p a {
    color: inherit;
    text-decoration: none; 
}

/*-------------------------Programs Webpage: Register for Courses-------------------------------*/
#certificateStreams .card-body h2 {
    color: #275D38; 
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-block; 
}

#certificateStreams .card-body h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; 
    width: 100%;
    height: 2px; 
    background-color: #ffc107; 
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

#certificateStreams .card-body h2:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.card-header.panelHeadingToggle.certificateStreamHeaderContainer {
    background-color: #ffc107;
    padding: 10px; 
    border-radius: 5px; 
}
.sectionHeader  {
    border: 2px solid #ffc107; 
    padding: 10px; 
    border-radius: 5px; 
}

/*Box View-Prgram Page*/
/* Course Timetable */
.course-timetable-container {
    background-color: #ffc107;
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-timetable-button {
    font-size: 13pt;
    font-family: Arial, sans-serif;
    color: #000000;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.calendar-icon {
    margin-right: 8px;
    font-size: 24px;
    text-decoration: none; 
}

.timetable-text {
    color: #000000;
    transition: color 0.3s ease, font-size 0.3s ease; 
}

.course-timetable-button:hover .timetable-text {
    color: #275D38; 
    font-size: 14pt; 
    text-decoration: none; 
}
.course-timetable-container .course-timetable-button {
    text-decoration: none; 
}

/*Box View - Porgram */
/* Main container */
.program-details-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.program-item {
    text-align: center;
    flex: 1;
}

.program-item-title {
    font-weight: bold;
    font-size: 16px;
    color: #1a1a1a;
    text-decoration: none;
}

.program-item-description {
    font-size: 14px;
    color: #666;
}

.divider {
    width: 1px;
    height: 40px;
    background-color: #ddd;
    margin: 0 10px;
}



/*-------------------------Course Webpage: Enroll Now-------------------------------*/
.sectionHeader {
    color: #275D38 !important;
}

.sectionHeader .sectionHeaderTitle h5 {
    color: #275D38 !important;
}
.card-header.panelHeadingToggle {
background-color: #275D38 !important;
color: white !important;
}

.card-header.panelHeadingToggle .card-title, 
.card-header.panelHeadingToggle * {
color: white !important; 
}

.card-header .courseProfileSectionAvailability {
color: #ffc107 !important; 
}

#sectionEnrollmentHeader {
border: 2px solid #275D38; 
padding: 10px;
border-radius: 5px; 
}

/* Makes the cart "Remove" text Black, Bold, and Underlined */
.d-none.d-lg-block .cartItemUpdateLinksContainerItemColumn a {
    color: black !important; 
    font-weight: bold !important;  
    text-decoration: underline !important; 
}

/* Change Texts of Log-In to CERegister Webpage to Black*/
#forgotUserNameLink {
    color: black !important;
}

#forgotPasswordLink {
    color: black !important; 
}
/*-------------------------Areas of Study Results Webpage-------------------------------*/


.table .certificate a {
    color: #275D38; 
    text-decoration: none; 
    transition: color 0.3s ease, transform 0.3s ease, font-size 0.3s ease; 
    transform: scale(1);
    font-size: 1em; 
}

.table .certificate a:hover {
    color: black; 
    transform: scale(1.1); 
    text-decoration: underline; 
    font-size: 1.1em;
}

.table .course a {
    color: #275D38; 
    text-decoration: none; 
    transition: color 0.3s ease, transform 0.3s ease; 
    transform: scale(1); 
    font-size: 1em; 
}

.table .course a:hover {
    color: black; 
    text-decoration: underline; 
    transform: scale(1.1); 
    font-size: 1.1em; 
}

#searchResultsLink span,
#searchAgainLink span {
    color: #275D38;
}

#certificateOfficalDescription{
    color: #275D38;
}

/*----------------------Footer, bottomNavigation.jsp------------------------------------------------------*/

footer {
    background-color: #275D38;
    color: #275D38 !important;
    padding: 20px;
}

#footer1Wrapper{
    padding-top: 25px;
}

.social-links a svg {
    width: 32px;
    height: 32px;
    margin-right: 10px; 
}

/* Specific styles to adjust the visual size of YouTube and LinkedIn icons */
.social-links a.youtube svg {
    width: 32px;
    height: 32px;
}

.social-links a.linkedin svg {
    width: 32px;
    height: 32px;
}

.logo.en-logo {
    padding-top: 14px;
}

.copy {
    font-size: 11px; 
}

/* Default border color for pagination */
.page-item {
    border: 1px solid #275D38; 
}

/* Border color and text color when the pagination item is active */
.page-item.active {
    border: 1px solid #ffc107; 
}

.page-item.active .page-link {
    background-color: #ffc107; 
    color: black; 
}

/* Text color for all page links */
.page-link {
    color: black; 
}

/* Ensure background color is set to transparent for non-active items */
.page-item:not(.active) .page-link {
    background-color: transparent; 
    color: #275D38; 
}

/*-----------------------------------------------------------------------------------*/

#sidebar1Module1 {
    color: white !important;
}

#sidebar1Wrapper {

    background-color: white;

}

.nav-pills {
    color: white !important;
}

footer a {
    color: white !important;
}


footer>a {
    color: white !important;
}

*/ #variableContentBlockPG0156 {
    color: #0F2F1B !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    padding-top: 35px !important;
    padding-bottom: 20px !important;
    display: flex;
    -ms-flex-align: center;
}

/* Public View Changes requested in ticket ONE-94323 */

/* Hide the Join Mailing List link and make the remaining divs fill the row equally */
#footerNav > div > div:has(.footerConnect) {
    display: none;
}

/* At a minimum width of 992px, target the col-lg-3 within #footerNav */
@media (min-width: 992px) {
    #footerNav > div > div.col-lg-3 {
        -ms-flex-preferred-size: 33.3333%;
        flex-basis: 33.3333%;
        max-width: 33.3333%;
    }
}

/* At a minimum width of 768px, target the col-md-6 within #footerNav */
@media (min-width: 768px) {
    #footerNav > div > div.col-md-6 {
        -ms-flex-preferred-size: 33.3333%;
        flex-basis: 33.3333%;
        max-width: 33.3333%;
    }
}

/* Hide View Instructors button from all Program pages */
#buttonViewInstructors {
    display: none !important;
}

/* Mobile View Adjustments for Nav Bar*/
@media (max-width: 767px) {
    /* Reset any existing padding/margin that may be affecting the layout */
    .nav {
        margin: 0;
        padding: 0;
        list-style-type: none; /* Ensures no default list styling */
    }

    .nav-item {
        margin-bottom: 10px !important; /* Forces margin between items (use !important if needed) */
    }

    .nav-link {
        display: block; /* Ensures the links take up the full width */
        padding: 12px; /* Adds padding inside the links for better click area */
        text-align: center; /* Centers the link text */
        width: 100%; /* Ensures the link occupies full width of its container */
    }

    /* Optional: If you want to ensure the items are vertically aligned */
    .nav {
        display: flex;
        flex-direction: column;
    }
}


/* Mobile and Responsive Adjustments */
@media (max-width: 1200px) {
    .row {
        flex-direction: column; /* Stack columns vertically on smaller screens */
    }

    
}

#courseProfileActions{
display: block !important;
}
/* Hide the default (school-level) corporate logo */
#schoolCorporateLogoWrapper {
    display: none !important;
}
document.addEventListener("DOMContentLoaded", function() {
    // Remove any UofA logos dynamically
    var logos = document.querySelectorAll(
        '.uofa-logo, .uofa-logo img, #headerLogo, #headerLogo img, .default-logo, .default-logo img, .header-logo, .header-logo img, .logo-container, .logo-container img'
    );
    logos.forEach(function(logo) {
        logo.remove();
    });

    // Ensure the school corporate logo is correctly positioned
    var corpLogo = document.getElementById('schoolCorporateLogoWrapper');
    if (corpLogo) {
        corpLogo.style.position = 'absolute';
        corpLogo.style.top = '35px';
        corpLogo.style.left = '15px';
        corpLogo.style.zIndex = '9999';
        corpLogo.style.display = 'block';
    }
});